﻿<div id="header">
    <div id="title">
        <h1>Miser<!--——就是爱折腾--></h1>
    </div>
    <div id='head_UserName' style=" float:right; margin:10px 20px 0"></div>
</div>
<script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/Global.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function() {
        var pCookiePos = document.cookie.indexOf(_cookieStr);
        var pCookie = document.cookie.substring(pCookiePos + _cookieStr.length + 1);
        var pName = '';
        var pCookieArray = pCookie.split('&');
        var item;
        for (var i in pCookieArray) {
            item = pCookieArray[i].split('=');
            if (typeof item != 'undefined' && item[0] == _cooliePName) {
                pName = item[1];
                break;
            }
        }
        if (pName != '') {
            $('#head_UserName').html('欢迎，' + pName);
        }
        else {
            $('#head_UserName').html('登入');
        }
    });
</script>